﻿import kliment.controls.Scroller;
import kliment.display.Sprite;
import kliment.display.SpriteBtn;
/**
 * ...
 * @author	Kliment
 * @version	1.3.3
 */
class kliment.controls.ScrollerBox extends Sprite {
	private var _space_mc:MovieClip;
	private var _seeker_mc:MovieClip;
	private var _up_mc:MovieClip;
	private var _down_mc:MovieClip;
	private var _seeker_btn:SpriteBtn;
	private var _up_btn:SpriteBtn;
	private var _down_btn:SpriteBtn;
	
	public var scroller:Scroller;
	
	public function ScrollerBox(taraget_mc:MovieClip, seeker_mc:MovieClip, space_mc:MovieClip, up_mc:MovieClip, down_mc:MovieClip) {
		super(taraget_mc);
		
		_space_mc = space_mc || _target_mc.space_mc;
		_seeker_mc = seeker_mc || _target_mc.seeker_mc;
		_up_mc = up_mc || _target_mc.up_mc;
		_down_mc = down_mc || _target_mc.down_mc;
		
		if (_seeker_mc)
			_seeker_btn = new SpriteBtn(_seeker_mc);
		
		if (_up_mc)
			_up_btn = new SpriteBtn(_up_mc);
		
		if (_down_mc)
			_down_btn = new SpriteBtn(_down_mc);
			
		seeker_btn.x = _space_mc._x;
		seeker_btn.y = _space_mc._y;
	}
	
	public function get space_mc():MovieClip { return _space_mc; }
	
	public function get seeker_btn():SpriteBtn { return _seeker_btn; }
	public function set seeker_btn(value:SpriteBtn):Void {
		_seeker_btn = value;
	}
	
	public function get up_btn():SpriteBtn { return _up_btn; }
	public function set up_btn(value:SpriteBtn):Void {
		_up_btn = value;
	}
	
	public function get down_btn():SpriteBtn { return _down_btn; }
	public function set down_btn(value:SpriteBtn):Void {
		_down_btn = value;
	}
	
	
}